#!/bin/bash

read -p "please choice your sex[man/feman]:" u_sex
if [[ $u_sex -eq man ]];then
	echo "1.杨幂 2.赵丽颖 3.范冰冰 4.娜扎"
	read -p "please choice the type you like:" u_num
	meinv=(1.杨幂 2.赵丽颖 3.范冰冰 4.娜扎)
	num1=$(echo "$u_num-1" |bc)
	num2=$(echo "${meinv[$num1]}")
	read -p "please input ${num2} conten:" u_conten
	for i in `seq ${#meinv[@]}`
	do	
		read -p "please write ${num2} type:" u_ty
		echo "you like ${num2}, and type is $u_ty" 
	done
else 
	echo "1.杨洋 2.井柏然 3.彭于晏 4.汪涵"
        read -p "please choice the type you like:" u_numb
        sg=(1.杨洋 2.井柏然 3.彭于晏 4.汪涵)
        numb1=$(echo "$u_numb-1" |bc)
        numb2=$(echo "${sg[$numb1]}")
        read -p "please input ${numb2} conten:" u_content
        for i in `seq ${#sg[@]}`
        do
                read -p "please write ${numb2} type:" u_typ
                echo "you like ${numb2}, and type is $u_ty" 
        done

fi
